package com.winterwar.base;

import java.util.Date;
import java.util.Set;

public class Registration extends BaseObject{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6603262238430899704L;

	private Integer regID;
	
	@SuppressWarnings("rawtypes")
	private Set events;
	private Integer userID;
	private Integer conID;
	private Integer status;
	private Integer type;
	private Double cost;
	private Double costOffset;
	private Integer eventsRegistered;
	private Integer eventsRunning;
	private Integer dayRegistered;
	private Double paid;
	private Date insertDate;
	private User user;
	private String conName;
	
	public boolean equals(Object o){
		return ((Registration ) o).getRegID().intValue() == this.regID.intValue();
	}

	@SuppressWarnings("rawtypes")
	public Set getEvents() {
		return events;
	}
	@SuppressWarnings("rawtypes")
	public void setEvents(Set events) {
		this.events = events;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getRegID() {
		return regID;
	}
	public void setRegID(Integer regID) {
		this.regID = regID;
	}
	
	public int hashCode(){
		if(regID != null)
			return regID.hashCode();
		else {
			Integer x = 0;
			return x.hashCode();
		}
	}
	public Integer getUserID() {
		return userID;
	}
	public void setUserID(Integer userID) {
		this.userID = userID;
	}
	public Integer getConID() {
		return conID;
	}
	public void setConID(Integer conID) {
		this.conID = conID;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Double getCost() {
		return cost;
	}
	public void setCost(Double cost) {
		this.cost = cost;
	}
	public Integer getEventsRegistered() {
		return eventsRegistered;
	}
	public void setEventsRegistered(Integer eventsRegistered) {
		this.eventsRegistered = eventsRegistered;
	}
	public Integer getEventsRunning() {
		return eventsRunning;
	}
	public void setEventsRunning(Integer eventsRunning) {
		this.eventsRunning = eventsRunning;
	}
	public Integer getDayRegistered() {
		return dayRegistered;
	}
	public void setDayRegistered(Integer dayRegistered) {
		this.dayRegistered = dayRegistered;
	}
	public Double getPaid() {
		return paid;
	}
	public void setPaid(Double paid) {
		this.paid = paid;
	}
	public Double getCostOffset() {
		return costOffset;
	}
	public void setCostOffset(Double costOffset) {
		this.costOffset = costOffset;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	public String getConName() {
		return conName;
	}

	public void setConName(String conName) {
		this.conName = conName;
	}
}
